﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>热表信息列表(弃用)</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edage" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="/InSiteWebApplication/Content/Easyui/themes/metro/easyui.css" rel="stylesheet" />
    <link href="/InSiteWebApplication/Content/Easyui/custom-easyui.css" rel="stylesheet" />
    <link href="/InSiteWebApplication/Content/Easyui/themes/icon.css" rel="stylesheet" />
</head>
<body>
    <div class="ufcSectionStyle">
        <span class="ufcSectionSpanStyle">查询结果</span>
    </div>
    <div style="background: #fff; margin: 3px 0px 3px 3px">
        <div style="width: 800px">
            <table id="gdRecordInfo" class="easyui-datagrid" style="width: 100%; height: 350px"
                data-options="rownumbers:true,pagination:false,striped:true,checkOnSelect:true,selectOnCheck:false,pageNumber:1,pageSize:5,pageList:[5,10,20]">
                <thead>
                    <tr>
                        <th data-options="field:'PRODUCTNAME',width:200">
                            件号
                        </th>
                        <th data-options="field:'SPECNO',width:200">
                            工序号
                        </th>
                        <th data-options="field:'FILENAME',width:200 ">
                            文件名
                        </th>
                        <th data-options="field:'FILEPATH',width:168,formatter: page.viewFile">
                            文件路径
                        </th>
                    </tr>
                </thead>
            </table>
            <div id="pp" style="float: right" class="easyui-pagination" data-options="   
                 layout:['first','prev','next','last','manual','info'],              
                    total: 0,
                    showPageList: false,
                    showPageInfo: false,
                    showRefresh: false,
                    afterPageText:'共&nbsp{pages}&nbsp页',
                    buttons:[{
                            iconCls:'',
                            text:'Go',
                            id:'pageGo',
                            handler:function(){
                               var pageNumber=$('#pageGo').parents('tr').find('.pagination-num').val();
                                searchData('gdRecordInfo',pageNumber,10);
                            }
                    }]  
                ">
            </div>
        </div>
        <div style="clear: both">
        </div>
    </div>
</body>
</html>
<script src="/InSiteWebApplication/Content/Easyui/jquery.min.js" type="text/javascript"></script>
<script src="/InSiteWebApplication/Scripts/json2.js" type="text/javascript"></script>
<script src="/InSiteWebApplication/Content/Easyui/jquery.easyui.min.js" type="text/javascript"></script>
<script src="/InSiteWebApplication/Content/Easyui/easyui-lang-zh_CN.js" type="text/javascript"></script>
<script src="/InSiteWebApplication/Scripts/CustomPageJs/CustomCommon.js" type="text/javascript"></script>
<!--<script type="text/javascript">
    var page = {
        pageTotal: 0,
        pageSize: 10,
        pageNumber: 1,
        rootPath: getRootPath(),  //网站根路径
        //初始化
        init: function () {
            page.bind();
            page.customizedPage();
            page.search();
        },
        bind: function () {
            //列表加载
            $("#gdRecordInfo").datagrid({
                onLoadSuccess: function (data) {
                    $('#pp').pagination('refresh', {// 改变选项，并刷新分页栏信息
                        total: page.pageTotal,
                        pageSize: page.pageSize,
                        pageNumber: page.pageNumber
                    });
                    page.customizedPage('pp'); //定制化分页
                }
            });
            //分页事件
            $('#pp').pagination({
                onSelectPage: function (pageNumber, pageSize) {
                    page.customizedPage(); //定制化分页
                    page.pageSize = pageSize; page.pageNumber = pageNumber;
                    page.search();
                }
            });
        },
        search: function () {
            var gridID = "#gdRecordInfo";
            var formData = {
                action: "GetPageList",
                pageSize: page.pageSize,
                pageNumber: page.pageNumber,
                productNo: "",
                stepNo: ""
            };

            $.ajax({
                type: "Post",
                url: page.rootPath + "/Ashx/ReBiaoConainer/ReBiaoContainerUploadHandler.ashx",
                data: formData,
                cashe: false,
                success: function (data) {
                    $(gridID).datagrid('loaded');
                    var result = JSON.parse(data);
                    //给分页对象赋值
                    page.pageTotal = result.TotalCount;
                    $(gridID).datagrid('loadData', { total: result.TotalCount, rows: result.Data });
                },
                error: function (XMLHttpRequest, textStatus, errorThrown) {
                    alert(XMLHttpRequest.responseText);
                }
            });
        },
        customizedPage: function () {
            var p = $("#pp");
            p.find('table tbody tr td a .l-btn-left .l-btn-text:eq(0)').html('首页 |');
            p.find('table tbody tr td a .l-btn-left .l-btn-text:eq(1)').html('上一页 |');
            p.find('table tbody tr td a .l-btn-left .l-btn-text:eq(2)').html('下一页 |');
            p.find('table tbody tr td a .l-btn-left .l-btn-text:eq(3)').html('尾页 |');
            p.find(".l-btn-icon").text('');
        },
        viewFile: function (value, row, index) {
            if (value != null && value != "") {
                return "<a href='" + page.rootPath + "/" + value + "' target='_blank'>查看</a>"
            }
        }
    };
    page.init();
</script>-->
